package Java_3_1;

public class Java_3_1_18 {

	public static void main(String[] args) {
		int a=19;
		for(int i=1;i<=10;++i) {
				for(int j=1;j<=a;++j) {
					if(Math.abs(j-(a+1)/2)+1>i){
						System.out.print(" ");
					}else {
						System.out.print("*");
					}
				}
			System.out.println();
		}
		for(int i=9;i>=1;--i) {
				for(int j=1;j<=a;++j) {
					if(Math.abs(j-(a+1)/2)+1>i){
						System.out.print(" ");
					}else {
						System.out.print("*");
					}
				}
			System.out.println();
		}
	}

}
